package com.futao.spring.lifecycle.cycle.aware;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.stereotype.Component;

/**
 * @author ft
 * @date 2021/1/28
 */
@Slf4j
@Component
public class CustomBeanFactory implements BeanFactoryAware {

    private BeanFactory beanFactory;

    @Override
    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
        log.info(".");
        this.beanFactory = beanFactory;
    }

}
